package com.gu.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.gu.entity.LeavingMessageDO;
import java.util.List;
import com.gu.mapper.LeavingMessageMapper;

/**
* The Table gu_leaving_message.
* 留言表
*/
@Repository
public class LeavingMessageDAO{

    @Autowired
    private LeavingMessageMapper leavingMessageMapper;

    public int deleteByPrimaryKey(Integer id){
        return leavingMessageMapper.deleteByPrimaryKey(id);
    }

    public int insert(LeavingMessageDO record){
        return leavingMessageMapper.insert(record);
    }

    public int insertSelective(LeavingMessageDO record){
        return leavingMessageMapper.insertSelective(record);
    }

    public int updateByPrimaryKeySelective(LeavingMessageDO record){
        return leavingMessageMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKeyWithBLOBs(LeavingMessageDO record){
        return leavingMessageMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    public int updateByPrimaryKey(LeavingMessageDO record){
        return leavingMessageMapper.updateByPrimaryKey(record);
    }

    public LeavingMessageDO getById(Integer id){
        return leavingMessageMapper.getById(id);
    }

    public Integer deleteByIds(Integer[] id){
        return leavingMessageMapper.deleteByIds(id);
    }

    public List<LeavingMessageDO> getRecordBySearchParam(String searchParam, String searchDate){
        return leavingMessageMapper.getRecordBySearchParam(searchParam, searchDate);
    }

    public List<LeavingMessageDO> getRecord(String searchParam,String searchDate){
        return leavingMessageMapper.getRecord(searchParam, searchDate);
    }

    public List<LeavingMessageDO> getRecordByAreaCode(String areaCode){
        return leavingMessageMapper.getRecordByAreaCode(areaCode);
    }

    public int deleteLeavingMsg(LeavingMessageDO leavingMessageDO){
        return leavingMessageMapper.deleteLeavingMsg(leavingMessageDO);
    }

}
